import { ref } from 'vue'
import { defineStore } from 'pinia'
export const useAdminStore = defineStore(
  'admin',
  () => {
    const token = ref(0)
    const changeToken = (newToken) => {
      token.value = newToken
    }
    return {
      token,
      changeToken
    }
  },
  {
    persist: true
  }
)
